import request from './http';
import {SsoApp} from "@/types/entity";

/**
 * app分组 前端接口
 */
export default class SsoAppApi {
  static page(data: SsoApp) {
    let { index, size, ...vo } = data;
    return request.post(`/ssoApp/page/${index}/${size}`, vo);
  }

  static save(data: SsoApp) {
    return request.post<SsoApp>('/ssoApp', data);
  }

  static update(data: SsoApp) {
    return request.put<SsoApp>('/ssoApp', data);
  }

  static delete(ids: number[]) {
    return request.post('/ssoApp/delete', ids);
  }

  static list(data: SsoApp) {
    return request.post('/ssoApp/list', data);
  }

  static getById(id: string) {
    return request.get(`/ssoApp/get/${id}`);
  }


}
